import { defineStore } from 'pinia'

export const useGlobalWarming = defineStore('globalWarming', {
  persist: {
    enabled: true
  },
  state() {
    return {
      // 全局事故弹窗控制
      showModal: false,
      // 首页抽屉事故页面控制
      showAccident: false,
      // 是否跳转
      needSkip: false
    }
  },
  getters: {
    getSkip() {
      return this.needSkip
    }
  },
  actions: {
    setSkip(value) {
      this.needSkip = value
    }
  }
})
